From 8ea573b473067292dbe2a5695bec225336933c85 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Wed, 10 Feb 2016 12:28:32 +0100 Subject: [PATCH] css node tree: Fix crash This function would return "" whenever the state of the css node was unset, causing a crash when selecting the css node tree from the sidebar. --- gtk/inspector/css-node-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/inspector/css-node-tree.c b/gtk/inspector/css-node-tree.c index db2e820724..a207e183f4 100644 --- a/gtk/inspector/css-node-tree.c +++ b/gtk/inspector/css-node-tree.c @@ -395,7 +395,7 @@ format_state_flags (GtkStateFlags state) return g_string_free (str, FALSE); } - return ""; + return g_strdup (""); } static void -- 2.30.2